<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php if( ztmao( 'ztmao_favicon', '' ) ) { ?>
	<link rel="shortcut icon" href="<?php echo ztmao( 'ztmao_favicon', '' ); ?>" type="image/x-icon" >
	<?php }else{ ?>
	<link rel="Shortcut Icon" href="<?php bloginfo('template_url');?>/img/favicon.ico" type="image/x-icon" />
<?php }?>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="//static.quanminbagua.com/M1/css/bootstrap.min.css" type="text/css" rel="stylesheet"/>
<link href="//static.quanminbagua.com/M1/fonts/iconfont.css" type="text/css" rel="stylesheet"/>
<link href="//static.quanminbagua.com/M1/fonts/font-awesome.min.css" type="text/css" rel="stylesheet"/>
<link href="//static.quanminbagua.com/M1/css/style.css" type="text/css" rel="stylesheet"/>
<link href="//static.quanminbagua.com/M1/css/common.css" type="text/css" rel="stylesheet"/>
<link href="//static.quanminbagua.com/M1/css/swiper.min.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="//static.quanminbagua.com/M1/js/jquery.min.js"></script>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="search-box " id="search-box">
	<i class="icon icon-search-close js-show-search-box"></i>
	<div class="search-content overlay-dialog-animate">
		<div class="search-input">
			<form role="search" method="get" action="<?php echo get_option('home'); ?>" onsubmit="return checkinput()">
				<button type="submit"></button>
				<input placeholder="请输入关键字，按回车键搜索" name="s" id="search-input">
				<input id="search-input" type="hidden">
			</form>
		</div>
		<div class="search-history search-hot">
			<span>热搜词</span>
			<ul>
				<?php if(function_exists('wp_nav_menu')) wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'search-nav')); ?>
			</ul>
		</div>
	</div>
</div>
<div id="top_nav" class="header yapiskan">
	<div class="container">
		<div class="row">
			<div class="top-bar mnav">
				<button class="navbar-toggle js-open-nav" type="button">
				<div class="icon-bar">
				</div>
				<div class="icon-bar">
				</div>
				<div class="icon-bar">
				</div>
				</button>
			</div>
			<div class="logo mnav">
				<a href="<?php bloginfo('url'); ?>">
				<?php if( ztmao('ztmao_logo') ) { ?>
				<img src="<?php echo ztmao('ztmao_logo'); ?>" alt="<?php bloginfo('name'); ?>">
				<?php }else{ ?>
				<img src="<?php bloginfo('template_url');?>/img/logo.png" alt="<?php bloginfo('name'); ?>">
				<?php }?>
		</a>
			</div>
			<div class="pull-right mnav">
				<i class="icon icon-search" id="msearch"></i>
			</div>
			<div class="nav-left" id="nav">
				<ul class="nav-menu clearfix">
					<?php if(function_exists('wp_nav_menu') && has_nav_menu('left-sidebar') ) {wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'left-sidebar'));
					 ?>	
 					<!-- <li class="menu-item-more">
 						<a href="javascript:;">更多<i class="fa fa-caret-down" aria-hidden="true"></i></a>
						<ul class="nav-menu-more">
							<?php if(function_exists('wp_nav_menu') && has_nav_menu('more-nav') ) {wp_nav_menu(array('container' => false, 'items_wrap' => '%3$s', 'theme_location' => 'more-nav'));} ?>	
						</ul>
					</li> -->
					<?php } else { ?>
						<ul id="menu-navigation" class="menu">
							<li>请到[后台->外观->菜单]中设置菜单。</li>
						</ul>
					<?php } ?>

				</ul>
			</div>
			<div class="nav-right">
				<ul class="clearfix">
				<?php if( ztmao('social_weixin') ) { ?>
					<!--<li class="wx-li">
					<div class="wx-pic">
						<img src="<?php echo ztmao('ztmao_social_weixin'); ?>" alt="微信订阅号">
						<div class="wx-text">
							<span>微信扫一扫</span>
						</div>
					</div>
					<i class="icon wx-icon"></i><span>微信</span><em class="guide-prompt" style="display: none;"></em>
					</li>-->
				<?php } ?>
				<?php if( ztmao('ztmao_ssk') ) { ?>
					<li class="search-li"><i class="icon icon-search "></i><span>搜索</span></li>
				<?php } ?>
				<?php if( ztmao('ztmao_login') ) { ?>
				<?php if ( is_user_logged_in() ) { 
					global $current_user;
					wp_get_current_user(); 
					$avatar = get_avatar( $current_user->user_email, 80);
				?>
					<li class="login-li"><a href="<?php bloginfo('url'); ?>/wp-admin/" title="管理网站">管理</a></li>
				<?php }else{?>
					<!-- <li class="login-li"><a href="/wp-login.php" title="登录网站">登录</a></li> -->
				<?php }?>
				<?php } ?>
				</ul>
			</div>
		</div>
	</div>
</div>